<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>网站后台管理</title>
<link href="__PUBLIC__/Admin/images/Admin_css.css" type="text/css"" rel=stylesheet>
<link rel="shortcut icon" href="__PUBLIC__/Admin/images/myfav.ico" type="image/x-icon" />
<import file= "Admin.js.admin,Admin.js.Ajax,Admin.js.Jquery"/> 
<script charset="utf-8" src="__PUBLIC__/Common/artDialog/jquery.artDialog.js?skin=green"></script>
<script charset="utf-8" src="__PUBLIC__/Common/artDialog/extend.js"></script>
</head>
<script>
function jconfirm(str,url)
{
   $.dialog.confirm(str,function (){window.location.href=url;});
}
function alertcheck()
{
	if(checkselectId()==false)
	{
		$.dialog.alert('请勾选ID记录!');
	}
}
function checkselectId()
{
	var ch =  $('.ids');
	var input = '';
	for(var i=0; i<ch.length;i++)
	{
		if(ch[i].checked == true)
		{
			input += ch[i].value+',';
		}       
	}
	if(input=='') return false;
	return input;
}
</script>
<body>
 
<form name="myform" method="POST" action="{:U('ArticleLink/delall')}" onsubmit="return checkselectId()">
<table width="95%" border="0"  align="center" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" class="admintable">
<tr> 
  <td colspan="5" align="left" class="admintitle">文章内链管理　[<a href="{:U('ArticleLink/add')}">添加</a>]</td>
</tr>
<tr bgcolor="#f1f3f5" style="font-weight:bold;">
	<td width="8%" height="30" align="center" class="ButtonList">&nbsp;</td>
    <td width="20%" height="30" align="center" class="ButtonList">关键字名称</td>
    <td width="40%" align="center" class="ButtonList">链接地址</td>
    <td width="10%" align="center" class="ButtonList">优先级</td>
    <td width="15%" height="25" align="center" bgcolor="#f1f3f5" class="ButtonList">管理</td>    
  </tr>
 <volist name="list" id="vo"> 
    <tr bgcolor="#f1f3f5" onMouseOver="this.style.backgroundColor='#EAFCD5';this.style.color='red'" onMouseOut="this.style.backgroundColor='';this.style.color=''">
    <td height="25" align="CENTER"><input type="checkbox" class='ids' value="{$vo.id}" name="id[]" onClick="unselectall(this.form)" style="border:0;">
      <input name="keyid[]" type="hidden" id="keyid" value="{$vo.id}"></td>
    <td height="25" align="left">{$i}.<a href="{:U('ArticleLink/edit?id=')}{$vo.id}">{$vo.title}</a></td>
    <td height="25" align="center"><input name="url[]" type="text" id="url" value="{$vo.url}" size="60" maxlength="250"></td>
    <td height="25" align="center"><input name="rank[]" type="text" id="rank" value="{$vo.rank}" size='5' maxlength="250"></td>
    <td align="center"><a href="{:U('ArticleLink/edit?id=')}{$vo.id}">编辑</a></td>    
  </tr>
 </volist>
	<tr bgcolor="#f1f3f5" onMouseOver="this.style.backgroundColor='#EAFCD5';this.style.color='red'" onMouseOut="this.style.backgroundColor='';this.style.color=''">
    <td height="25" bgcolor="#f1f3f5"><input name="Action" type="hidden"  value="Del">
      <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(this.form)" value="checkbox" style="border:0"></td>
    <td height="25" colspan="4" bgcolor="#f1f3f5"  align="left"><input name="Del" type="submit" class="bnt" id="Del"  onclick="alertcheck()" value="删除">
      <input name="Del" type="submit" class="bnt" id="Del" value="编辑" onclick="alertcheck()"></td>
    </tr>
  <tr><td bgcolor="f7f7f7" colspan="5" align="left">
  <div id="page">
	<ul style="text-align:left;">
{$page}
    </ul>
</div>
</td></tr>
</table>
</form>
<div style="text-align:center;margin:10px;">
<hr>
<include file="Index:copy"/> 
</div>
</body>
</html>